from check_rules import checker
import os

#
# path = r'D:\PaperW\S4\2\output\output\com.SilentInMeetingClass'
# path1 = ''
# chk = checker(path)
# # print(chk.rules4type6())
# # print(chk.rules4type5())
# print(chk.rules4type1())


# p = r'D:\PaperW\S4\2\output\output'
# for i in os.listdir(p):
#     if os.path.isdir(p + '\\' + i):
#         print(i)
#         chk = checker(p + '\\' + i)
#         print('type6:', chk.rules4type6())
#         # print('type5:', chk.rules4type5())
#         # print('type4:', chk.rules4type4())
#         # print('type2:', chk.rules4type2())
#         # print('type1:', chk.rules4type1())

#batch
p = r'D:\PaperW\S4\2\output\output'
for i in os.listdir(p):
    if os.path.isdir(p + '\\' + i):
        # print(p + '\\' + i)
        chk = checker(p + '\\' + i)
        chk.check_all()
